package com.example.tbtx.tbtx;

import android.os.Build;
import android.support.annotation.NonNull;
import android.support.annotation.RequiresApi;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;

import com.example.tbtx.tbtx.adapter.CardAdapter;
import com.example.tbtx.tbtx.adapter.CustomLayoutManager;
import com.example.tbtx.tbtx.adapter.FsLayoutmanager;
import com.example.tbtx.tbtx.adapter.ZhyBaseRecycleAdapter.CommonAdapter;
import com.example.tbtx.tbtx.adapter.ZhyBaseRecycleAdapter.base.ViewHolder;
import com.example.tbtx.tbtx.adapter.recyclerviewhelper.CardAdapterHelper;
import com.example.tbtx.tbtx.adapter.recyclerviewhelper.CardScaleHelper;
import com.example.tbtx.tbtx.base.BaseActivity;
import com.example.tbtx.tbtx.utils.system.ScreenUtil;

import java.util.ArrayList;
import java.util.List;

import butterknife.BindView;

public class HomeActivity extends BaseActivity {


    @BindView(R.id.recyclerView)
    RecyclerView mRecyclerView;
    private ArrayList<String> mList=new ArrayList<>();
    private CardScaleHelper mCardScaleHelper;

    @Override
    public int setLayout() {
        return R.layout.activity_home;
    }

    @Override
    public void initEvent() {
        for (int i = 0; i < 10; i++) {
            mList.add("");
        }
        mRecyclerView.setLayoutManager(new FsLayoutmanager(mRecyclerView));
        mRecyclerView.setAdapter(new CommonAdapter<String>(this,R.layout.view_card_item,mList) {

            @Override
            protected void convert(ViewHolder holder, String s, int position) {

            }
        });
        mRecyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() {
            @Override
            public void onScrollStateChanged(RecyclerView recyclerView, int newState) {
                super.onScrollStateChanged(recyclerView, newState);
            }

            @Override
            public void onScrolled(RecyclerView recyclerView, int dx, int dy) {
                super.onScrolled(recyclerView, dx, dy);
            }
        });
        // mRecyclerView绑定scale效果
    }

    @Override
    public void initData() {

    }

    public String getID() {
        return null;
    }
}
